package com.yuxiu.edu.web.controller;

import com.yuxiu.edu.model.User;
import com.yuxiu.edu.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
@RequestMapping("salary")
public class CourseController {

    @Autowired
    private IUserService userService;

    @RequestMapping("find")
    public String find(Integer id){
        System.out.println(".....");
        User user = userService.findById(id);
        System.out.println(user);
        return null;
    }

    @RequestMapping("manage")
    public String manage(){
        return "Course/CourseManage";
    }

    @RequestMapping("info")
    public String info(){
        return "Course/CourseInfo";
    }

    @RequestMapping("edit")
    public String edit(){
        return "Course/CourseEdit";
    }

    @RequestMapping("up")
    public String up() { return "Course/CourseUpdate"; }

    @RequestMapping("other")
    public String other() { return "Course/CourseOther"; }
}
